
common:= ../../app/app_common.c ../../app/app_common.h
log:= ../../thirdparty/log.c ../../thirdparty/log.h
pthread_01: 01_pthread.c
	gcc -o $@  $^
	./$@
	rm -f $@

thread_join: 02_thread_join.c $(common) $(log)
	gcc -o $@  $^  -I../../app -I../../thirdparty
	./$@
	rm -f $@

sum_03: 03_sum.c $(common) $(log)
	gcc -o $@  $^  -I../../app -I../../thirdparty
	./$@
	rm -f $@

mqueue_04: 04_mqueue.c  
	gcc -o $@  $^   
	./$@